import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'


//通用信息应答录入查询
export const apiUrlConfiEntry = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdEntry/search`,
}



// 通用信息录入
export function generalInformationRepsdEnDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdEntry/detail`,
    method: 'get',
    params: { coreId:data.coreId,pkgNo:data.pkgNo,bizType:data.bizType,bizCtgy:data.bizCtgy}
  })
}


//通用信息应答录入查询searchTable06804
export const apiUrlConfiEntry06804 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdEntry/searchTable06804`,
}


//通用信息应答录入查询searchTable06813
export const apiUrlConfiEntry06813 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdEntry/searchTable06813`,
}

//通用信息应答录入查询searchTable06814
export const apiUrlConfiEntry06814 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdEntry/searchTable06814`,
}

//通用信息应答录入查询searchTable06815
export const apiUrlConfiEntry06815 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdEntry/searchTable06815`,
}



// 通用信息应答录入
export function generalInformationRepsdEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdEntry/save`,
    method: 'post',
    data:data
  })
}

// 通用信息应答录入下载
export function generalInformationRepsdEntryDownload(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdEntry/download`,
    method: 'get',
    params:{id:data.id,pkgNo:data.pkgNo}
  })
}





//通用信息应答审核查询
export const apiUrlConfiApprove = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdApprove/search`,
}



// 通用信息审核
export function generalInformationRepsdAppDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdApprove/detail`,
    method: 'get',
    params: { id:data.id,msgtype:data.msgtype,bizType:data.bizType,bizCtgy:data.bizCtgy}
  })
}


//通用信息应答录入查询searchTable06804
export const apiUrlConfiApprove06804 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdApprove/searchTable06804`,
}


//通用信息应答录入查询searchTable06813
export const apiUrlConfiApprove06813 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdApprove/searchTable06813`,
}

//通用信息应答录入查询searchTable06814
export const apiUrlConfiApprove06814 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdApprove/searchTable06814`,
}

//通用信息应答录入查询searchTable06815
export const apiUrlConfiApprove06815 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdApprove/searchTable06815`,
}




// 通用信息应答审核通过
export function  generalInformationApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdApprove/approve`,
    method: 'post',
    data:data
  })
}

// 通用信息应答审核拒绝
export function  generalInformationApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationRepsdApprove/reject`,
    method: 'post',
    data:data
  })
}
